package com.takeoutOrder.server.service;

import java.util.List;
import com.takeoutOrder.server.domain.AddressBook;

/**
 * 地址簿Service接口
 * 
 * @author linzechen
 * @date 2024-11-27
 */
public interface IAddressBookService 
{
    /**
     * 查询地址簿
     * 
     * @param id 地址簿主键
     * @return 地址簿
     */
    public AddressBook selectAddressBookById(Long id);

    /**
     * 查询地址簿列表
     * 
     * @param addressBook 地址簿
     * @return 地址簿集合
     */
    public List<AddressBook> selectAddressBookList(AddressBook addressBook);

    /**
     * 新增地址簿
     * 
     * @param addressBook 地址簿
     * @return 结果
     */
    public int insertAddressBook(AddressBook addressBook);

    /**
     * 修改地址簿
     * 
     * @param addressBook 地址簿
     * @return 结果
     */
    public int updateAddressBook(AddressBook addressBook);

    /**
     * 批量删除地址簿
     * 
     * @param ids 需要删除的地址簿主键集合
     * @return 结果
     */
    public int deleteAddressBookByIds(Long[] ids);

    /**
     * 删除地址簿信息
     * 
     * @param id 地址簿主键
     * @return 结果
     */
    public int deleteAddressBookById(Long id);
}
